package lab02.test11;

public class Rectangle implements Printx {
    float a;
    float b;

    float area(){
        return a*b;
    }
    float merimeter(){
        return (a+b)*2;
    }
    @Override
    public void printMyWay() {
        System.out.println(a);
        System.out.println(b);
        System.out.println(area());
        System.out.println(merimeter());

    }
}
